package fastwave.cloud.demo.fastwave.biz.subscriber.services;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <p>Title: HeadersReceiver</p>
 * <p>Description: </p>
 *
 * @author: dwLiu
 * @date: 2020/4/7 0:01
 */
@Component
public class HeadersReceiver {

    @RabbitListener(queues = "HeadersQueue1")
    public void receiver1(String msg){
        System.out.println("收到1的消息："+msg);
    }

    @RabbitListener(queues = "HeadersQueue2")
    public void receiver2(String msg){
        System.out.println("收到2的消息："+msg);
    }

    @RabbitListener(queues = "HeadersQueue3")
    public void receiver3(String msg){
        System.out.println("收到3的消息："+msg);
    }

    @RabbitListener(queues = "HeadersQueue4")
    public void receiver4(String msg){
        System.out.println("收到4的消息："+msg);
    }
}
